tests: Add a commitpartial + prune test
authorColin Walters <walters@verbum.org>
Wed, 23 Mar 2016 19:32:06 +0000 (15:32 -0400)
committerColin Walters <walters@verbum.org>
Wed, 23 Mar 2016 19:34:17 +0000 (15:34 -0400)
Followup for previous commit.

tests/test-prune.sh

index a1322d90f1727a7aec9e3d7ac0ba7e5b13dbba4e..7184ea9c58190c0de2f1fbab1a698ffb600ca41b 100755 (executable)
@@ -23,7 +23,7 @@ set -euo pipefail
 
 setup_fake_remote_repo1 "archive-z2"
 
-echo '1..1'
+echo '1..2'
 
 cd ${test_tmpdir}
 mkdir repo
@@ -126,3 +126,11 @@ ${CMD_PREFIX} ostree --repo=repo static-delta list | wc -l > deltascount
 assert_file_has_content deltascount "^1$"
 
 echo "ok prune"
+
+rm repo -rf
+ostree --repo=repo init --mode=bare-user
+${CMD_PREFIX} ostree --repo=repo remote add --set=gpg-verify=false origin $(cat httpd-address)/ostree/gnomerepo
+${CMD_PREFIX} ostree --repo=repo pull --depth=-1 --commit-metadata-only origin test
+ostree --repo=repo prune
+
+echo "ok prune with partial repo"